﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SharpSoft.Data
{
    /// <summary>
    /// 用于描述一个字段在更新时不取实体数据的值，而总是用自身叠加
    /// </summary>
    [System.AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = false)]
    public sealed class UpdateIncrementAttribute : Attribute
    {
        public UpdateIncrementAttribute()
        {
        }
        /// <summary>
        /// 叠加的增量
        /// </summary>
        public int Increment { get; set; } = 1;
    }
}
